<template>
    <div>
        <div class="header">
            <div class="icon"></div>
            <div class="text">{{ title }}</div>
        </div>
    </div>
</template>
<script>
export default {
    // 接收父组件传来的变量
    props:['title']
}
</script>
<style lang="less" scoped>
    .header{
        display: flex;
        .icon{
            width: 24px;
            height: 30px;
            background-image: url(../../assets/layout/box_title_icon.png);
            background-size: 100%;
            margin-right: 10px;
        }
        .text{
            font-size: 18px;
            font-family: "楷体";
            line-height: 30px;
        }
    }
</style>